package com.blue.crawler.annotation;

import java.net.Proxy;

import org.apache.http.Header;

public class CrawlerConfig
{
	private String name;
	private Class<?> clazz;
	private Class<?> crawler;
	private int interval;
	private boolean existAndStop;

	private String url;
	private Header[] headers;
	private int startPage;
	private int endPage;
	private int step;
	private boolean reverse;

	private boolean proxy = false;
	private String proxyHost;
	private int proxyPort;
	private Proxy.Type proxyType;

	private boolean download = false;
	private String root;
	private int thumbHeight;
	private int thumbWidth;

	public CrawlerConfig()
	{
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Class<?> getClazz()
	{
		return clazz;
	}

	public void setClazz(Class<?> clazz)
	{
		this.clazz = clazz;
	}

	public Class<?> getCrawler()
	{
		return crawler;
	}

	public void setCrawler(Class<?> crawler)
	{
		this.crawler = crawler;
	}

	public int getInterval()
	{
		return interval;
	}

	public void setInterval(int interval)
	{
		this.interval = interval;
	}

	public boolean isExistAndStop()
	{
		return existAndStop;
	}

	public void setExistAndStop(boolean existAndStop)
	{
		this.existAndStop = existAndStop;
	}

	public String getUrl()
	{
		return url;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	public Header[] getHeaders()
	{
		return headers;
	}

	public void setHeaders(Header[] headers)
	{
		this.headers = headers;
	}

	public int getStartPage()
	{
		return startPage;
	}

	public void setStartPage(int startPage)
	{
		this.startPage = startPage;
	}

	public int getEndPage()
	{
		return endPage;
	}

	public void setEndPage(int endPage)
	{
		this.endPage = endPage;
	}

	public int getStep()
	{
		return step;
	}

	public void setStep(int step)
	{
		this.step = step;
	}

	public boolean isReverse()
	{
		return reverse;
	}

	public void setReverse(boolean reverse)
	{
		this.reverse = reverse;
	}

	public boolean isProxy()
	{
		return proxy;
	}

	public void setProxy(boolean proxy)
	{
		this.proxy = proxy;
	}

	public String getProxyHost()
	{
		return proxyHost;
	}

	public void setProxyHost(String proxyHost)
	{
		this.proxyHost = proxyHost;
	}

	public int getProxyPort()
	{
		return proxyPort;
	}

	public void setProxyPort(int proxyPort)
	{
		this.proxyPort = proxyPort;
	}

	public Proxy.Type getProxyType()
	{
		return proxyType;
	}

	public void setProxyType(Proxy.Type proxyType)
	{
		this.proxyType = proxyType;
	}

	public boolean isDownload()
	{
		return download;
	}

	public void setDownload(boolean download)
	{
		this.download = download;
	}

	public String getRoot()
	{
		return root;
	}

	public void setRoot(String root)
	{
		this.root = root;
	}

	public int getThumbHeight()
	{
		return thumbHeight;
	}

	public void setThumbHeight(int thumbHeight)
	{
		this.thumbHeight = thumbHeight;
	}

	public int getThumbWidth()
	{
		return thumbWidth;
	}

	public void setThumbWidth(int thumbWidth)
	{
		this.thumbWidth = thumbWidth;
	}

}
